(function () {
  var index = new Vue({
    el: "#index",
    data: function () {
      return {
        name: "",
        avatar_url: "",
        role_name: "",
        suid: "",
        rid: "",
      };
    },
    methods: {},
    created: function () {
      this.name = localStorage.getItem("name");
      this.avatar = localStorage.getItem("avatar");
      this.role_name = localStorage.getItem("role_name");
      this.suid = localStorage.getItem("suid");
      this.rid = localStorage.getItem("rid");
      if (!this.name) {
				window.alert("请登陆")
        location.href = "pages/user/login.html";
      }
    },
    mounted: function () {},
  });
})();
